import request from '@/utils/request'

// 查询店铺关系列表
export function listBiPddShopRelation(query) {
  return request({
    url: '/pdd/BiPddShopRelation/list',
    method: 'get',
    params: query
  })
}

// 查询店铺关系详细
export function getBiPddShopRelation(id) {
  return request({
    url: '/pdd/BiPddShopRelation/' + id,
    method: 'get'
  })
}

// 新增店铺关系
export function addBiPddShopRelation(data) {
  return request({
    url: '/pdd/BiPddShopRelation',
    method: 'post',
    data: data
  })
}

// 修改店铺关系
export function updateBiPddShopRelation(data) {
  return request({
    url: '/pdd/BiPddShopRelation',
    method: 'put',
    data: data
  })
}

// 删除店铺关系
export function delBiPddShopRelation(id) {
  return request({
    url: '/pdd/BiPddShopRelation/' + id,
    method: 'delete'
  })
}
